package routers

import (
	"github.com/gin-gonic/gin"
	"student-admin/app/controller"
)

func InitRouter(r *gin.Engine) {
	r.GET("/ping", func(c *gin.Context) {
		controller.ResponseJSON(c, 200, 0, "pong", struct{}{})
	})

	r.POST("/login", func(c *gin.Context) {
		controller.ResponseJSON(c, 200, 0, "success", struct{}{})
	})

	r.GET("/student/list", controller.GetStudentList)
}
